package com.imut.onlinebanking.xrh.service.impl;

import com.imut.onlinebanking.xrh.pojo.entity.Account;
import com.imut.onlinebanking.xrh.service.xrhSer;
import com.imut.onlinebanking.xrh.mapper.xrhMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class xrhSerImpl implements xrhSer {
    @Autowired
    private xrhMapper xrhMapper;
    @Override
    public List<Account> selectByAccountId(String id) {
        return xrhMapper.selectByAccountId(id);
    }

    @Override
    public int updateBalance(String accountId, String balance) {
        return xrhMapper.updateBalance(accountId,balance);
    }

    @Override
    public List<Account> selectByAccount() {
        return xrhMapper.selectByAccount();
    }
}
